import service from '@/utils/request'

export const createDwsFld = (data) => {
  return service({
    url: '/dwsFld/createDwsFld',
    method: 'post',
    data
  })
}

export const deleteDwsFld = (data) => {
  return service({
    url: '/dwsFld/deleteDwsFld',
    method: 'delete',
    data
  })
}

export const deleteDwsFldByIds = (data) => {
  return service({
    url: '/dwsFld/deleteDwsFldByIds',
    method: 'delete',
    data
  })
}

export const updateDwsFld = (data) => {
  return service({
    url: '/dwsFld/updateDwsFld',
    method: 'put',
    data
  })
}

export const findDwsFld = (params) => {
  return service({
    url: '/dwsFld/findDwsFld',
    method: 'get',
    params
  })
}

export const getDwsFldList = (params) => {
  return service({
    url: '/dwsFld/getDwsFldList',
    method: 'get',
    params
  })
}

export const getAllDwsFlds = (params) => {
  return service({
    url: '/dwsFld/getAllDwsFlds',
    method: 'get',
    params
  })
}

export const getDwsFld = (data) => {
  return service({
    url: '/dwsFld/getDwsFld',
    method: 'post',
    data
  })
}


export const initDwsFld = () => {
  return service({
    url: '/dwsFld/initDwsFld',
    method: 'get',
  })
}
